<template>
  <div class="register">
    <el-form :model="form" label-width="180px">
        <el-form-item label="用户账号">
            <el-input v-model="form.userName"></el-input>
        </el-form-item>
        <el-form-item label="密码">
            <el-input v-model="form.password"></el-input>
        </el-form-item>
        <el-form-item label="用户年龄">
            <el-input v-model="form.age"></el-input>
        </el-form-item>
        <el-form-item label="用户生日">
            <el-input v-model="form.birthday"></el-input>
        </el-form-item>
        <el-form-item label="用户邮箱">
            <el-input v-model="form.email"></el-input>
        </el-form-item>
        <el-form-item label="用户性别">
            <el-input v-model="form.gender"></el-input>
        </el-form-item>
        <el-form-item label="用户电话">
            <el-input v-model="form.phoneNum"></el-input>
        </el-form-item>
        <el-form-item label="用户姓名">
            <el-input v-model="form.realName"></el-input>
        </el-form-item>
        <el-form-item>
            <el-button class="toRegister">register</el-button>
        </el-form-item>
         <el-form-item>
           <router-link to="/login"><el-button >login</el-button></router-link>
        </el-form-item>
    </el-form>
  </div>
</template>

<script>
export default {
    data() {
        return {
             form: {

        },
        }
    },
    methods: {
         registerFn() {
        this.$http.post('/user/save',this.form)
    }
    }

}
</script>

<style>
@import './index.scss'

</style>